﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WorkStation.Frameworks.EasyBus.DbModel
{
    /// <summary>
    /// 订阅端处理消息日志
    /// </summary>
    public class MessageProcessLog
    {
        public string _id { get; set; }

        /// <summary>
        /// 消息唯一标识
        /// </summary>
        public string MessageId { get; set; }

        /// <summary>
        /// 订阅端队列地址
        /// </summary>
        public string Mq { get; set; }

        /// <summary>
        /// 处理器名称
        /// </summary>
        public string HandleName { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        public bool IsSuccess { get; set; }

        /// <summary>
        /// 订阅端处理消息的总线名称
        /// </summary>
        public string BusName { get; set; }

        /// <summary>
        /// 订阅端处理消息的总线节点名称
        /// </summary>
        public string NodeName { get; set; }

        /// <summary>
        /// 监听器名称
        /// </summary>
        public string ListenerName { get; set; }

        /// <summary>
        /// 错误内容
        /// </summary>
        public string Error { get; set; }

        public MessageProcessLog()
        {
            this._id = Guid.NewGuid().ToString();
        }
    }
}
